<?php

$name = $_POST['contact-name'];
$email = $_POST['contact-email'];
$message = $_POST['contact-message'];

$to = 'contact@sigma-solutions.eu';
$subject = 'Contact Form Request';
$message = 'New Contact Request FROM: '.$name.' Email: '.$email.' with message: '.$message;
$headers = 'From: contact@sigma-solutions.eu';

if (filter_var($email, FILTER_VALIDATE_EMAIL)) { // this line checks that we have a valid email address
	mail($to, $subject, $message, $headers); //This method sends the mail.
	echo "Your email was sent!"; // success message
}else{
	echo "Invalid Email, please provide an correct email.";
}